/*    */ package com.qmsk.business.task.discuss.dao;
/*    */ 
/*    */ import com.qmsk.business.sys.basic.SupportDAO;
/*    */ import com.utils.gson.out.GsonEbRst;
/*    */ import java.sql.SQLException;
/*    */ import java.util.Map;
/*    */ import org.springframework.stereotype.Repository;
/*    */ 
/*    */ @Repository
/*    */ public class DiscussDao extends SupportDAO
/*    */ {
/*    */   public GsonEbRst getGsonOfShopIdDesc(Map<String, Object> params, Integer nPageIdx, Short nPageSize)
/*    */     throws SQLException
/*    */   {
/* 16 */     return getGsonOfParams("selectSqlOfShopIdDesc", "selectCountSqlOfShopId", 
/* 17 */       "selectJsonOfShopId", params, nPageIdx, nPageSize);
/*    */   }
/*    */ 
/*    */   public GsonEbRst getGsonOfShopIdAsc(Map<String, Object> params) throws SQLException {
/* 21 */     return getGsonOfParams("selectSqlOfShopIdasc", 
/* 22 */       "selectJsonOfShopId", params);
/*    */   }
/*    */ 
/*    */   public int updateCheckedOfIds(Long userId, String userName, String id) throws SQLException
/*    */   {
/* 27 */     Object[] strParams = { userId, userName };
/* 28 */     return update("updateCheckedOfIds", strParams);
/*    */   }
/*    */ 
/*    */   public int updatePraiseNums(Long id) throws SQLException {
/* 32 */     Object[] params = { id };
/* 33 */     return update("updatePraiseNums", params); }
/*    */ 
/*    */   public int updateNum(String id) throws SQLException {
/* 36 */     Object[] params = { id };
/* 37 */     return update("updateNum", params);
/*    */   }
/*    */ 
/*    */   public int updateStatus(Long id, Integer status) throws SQLException
/*    */   {
/* 42 */     Object[] params = { status, id };
/* 43 */     return update("updateStatus", params);
/*    */   }
/*    */ 
/*    */   public GsonEbRst getGsonOfAll(Map<String, Object> params, Integer nPageIdx, Short nPageSize) throws SQLException
/*    */   {
/* 48 */     return getGsonOfParams("selectSqlOfShopId", "selectCountSqlOfShopId", 
/* 49 */       "selectJsonOfShopId", params, nPageIdx, nPageSize);
/*    */   }
/*    */ 
/*    */   public GsonEbRst getGsonOfAll(Map<String, Object> params) throws SQLException {
/* 53 */     return getGsonOfParams("selectSqlOfShopId", 
/* 54 */       "selectJsonOfShopId", params);
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.task.discuss.dao.DiscussDao
 * JD-Core Version:    0.5.3
 */